/*
This file is part of AI Agent Feed.

"AI Agent Feed" is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

"AI Agent Feed" is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with "AI Agent Feed".  If not, see <http://www.gnu.org/licenses/>.
 */
package com.feed.protocol.http;

import org.joda.time.DateTime;

public interface HttpProtocolHandler {
	
	/**
     * Threshold for content length; page will be in
     * STATE_UNSUPPORTED if the content is longer that this
     */
    public final static int MAX_CONTENT_LENGTH = 100 * 1024; // 100kB

    /**
     * Default port for http access
     */
    public final static int HTTP_DEFAULT_PORT = 80;

    /**
     * Default timeout in ms
     */
    public final static int DEFAULT_TIMEOUT = 30000;
    
    public static final String RFC822_FORMAT = "EEE, d MMM yyyy HH:mm:ss z";

	public abstract String getContentText();

	public abstract DateTime getLastModified();

}
